// 运行时配置
import svg from '@/assets/1.svg'
import Request from './utils/request';
import { useModel } from '@umijs/max';
// 全局初始化数据配置，用于 Layout 用户信息和权限初始化
// 更多信息见文档：https://umijs.org/docs/api/runtime-config#getinitialstate
export async function getInitialState(): Promise<any> {
  return {name:name,avatar:svg};
}

export const layout = () => {
  return {
    logo: svg,
    menu: {
      locale: false,
    },
    layout:'mix',
    logout:(data:any)=>{
      console.log(data)
    },
  };
};

//请求接口
export const request = Request
